﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
using ClassLibrary.Configuration;
using ClassLibrary.Configuration.Manager;

namespace ConfigGenerator
{
    class ManagerConfigGenerator
    {
        public ManagerConfigGenerator(String outputPath)
        {
            var managerConfig = new ManagerConfig()
            {
                Port = 9049
            };

            var writer = new XmlSerializer(typeof(ManagerConfig));
            using (var file = File.Create(outputPath))
            {
                writer.Serialize(file, managerConfig);
            }
        }
    }
}
